/* 
 * File:   Noeud.cpp
 * Author: H4314
 * 
 * Created on 3 avril 2012, 09:46
 */

#include "Node.h"

int Node::NODES = 0;

Node::~Node() {
}

// Nettoie proprement la mémoire d'une liste de noeuds
void Node::CleanItUp(list<Node *> & nodeList) {
    while(!nodeList.empty())
    {
        delete nodeList.back();
        nodeList.pop_back();
    }
}

ostream & operator<<(ostream & stream, const Node & node) {
    node.Print(stream);
    return stream;
}
